home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000371_curtis.steward@goodrich.com_Mon Mar 10 14:06:49 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  5KB  |  162 lines

  1. Article: 14168 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: curtis.steward@goodrich.com (Curtis Steward)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: TLS HowTo Telnet/FTP
  6. Date: 10 Mar 2003 10:38:24 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 143
  9. Message-ID: <f53f8c5c.0303101038.198c3d24@posting.google.com>
  10. References: <f53f8c5c.0303041213.45f6bbe7@posting.google.com> <b4329a$300$1@watsol.cc.columbia.edu> <f53f8c5c.0303051052.327e975c@posting.google.com> <3E66D40A.1050402@nyc.rr.com> <f53f8c5c.0303060740.514c6150@posting.google.com> <3E67E435.1010706@nyc.rr.com>
  11. NNTP-Posting-Host: 207.180.255.121
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 1047321504 7507 127.0.0.1 (10 Mar 2003 18:38:24 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 10 Mar 2003 18:38:24 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14168
  18.  
  19. "Jeffrey Altman [Road Runner NYC]" <jaltman2@nyc.rr.com> wrote in message news:<3E67E435.1010706@nyc.rr.com>...
  20. > The proper command is
  21. >    IKS <host>
  22. > or
  23. >    SET HOST /CONNECT <host> kermit
  24. > You are not negotiating a TLS-TELNET connection.
  25.  
  26. Frank/Jeff,
  27.  
  28. That did it, got confused on the start-tls of iksd.conf vs.
  29. tls-telnet!  Thanks a lot, works well.
  30.  
  31. Is the doc meaning the "PUSH" compile-time option won't enable shell
  32. access, is there any other alternative?
  33.  
  34. 5.4. Shell Access
  35. �
  36. This is true even if the executable was built without the NOPUSH
  37. compile-time option.
  38.  
  39. I know "Ctrl-\! Works for the client shell, but the server side would
  40. be nice.
  41.  
  42. Thanks again for all the help.
  43.  
  44. cs
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. HOWTO
  52.  
  53. This HowTo is nonfunctional at the time of this writing.  It attempts
  54. to create a basic "loopback test" via an OpenSSL certificate.
  55.  
  56. Localhost is client & server:    Redhat 8.0
  57. Kermit Client:            Kermit 8.0.208
  58. Kermit Server:            Kermit 8.0.208 (IKSD)
  59. Certificates:            RSA based, length 2048 (openssl genrsa)
  60.  
  61. TLS STEP-BY-STEP
  62.  
  63. download <tarball>
  64. mkdir kermit
  65. cd kermit
  66. tar ∩┐╜xvzf ../<tarball>
  67. make redhat80    
  68. cp ∩┐╜p wermit /usr/local/bin/kermit
  69. cp ∩┐╜p wermit /usr/sbin/iksd
  70.  
  71. Place certs/keys, don't have password on servers' host cert.
  72.  
  73. chown ∩┐╜R <user>:<user group~<user>/.tlslogin
  74. cp ∩┐╜p $WS_NAME.crt ~<user>/.tlslogin
  75. ls /usr/local/ca/cacert.crt
  76.  
  77. /etc/init.d/xinetd.d stop
  78. /etc/init.d/xinetd.d start
  79.  
  80. netstat ∩┐╜an | grep 1649
  81. tcp    0    0    0.0.0.0:1649    0.0.0.0:*    LISTEN
  82.  
  83.  
  84. kermit
  85.     show features
  86.     ∩┐╜
  87.     Major optional features included:
  88.         Secure Sockets Layer (SSL)
  89.         Transport Layer Security (TLS)
  90.         ∩┐╜
  91.     iks /user:anonymous /pass:user@host kermit.columbia.edu        #basic test    
  92.     set host www.amazon.com https /ssl            #should get [TLS-OK]
  93.         
  94.     set host /connect <host> 1649 
  95.  
  96. /ETC/XINETD.D/KERMIT
  97.  
  98. # default: on
  99. #        server_args     = -A --syslog:6 --database:off
  100. service kermit
  101. {
  102.     socket_type    = stream        
  103.     wait        = no
  104.     user        = root
  105.     server        = /usr/sbin/iksd
  106.             server_args     = -A 
  107.     disable        = no
  108. }
  109.  
  110. /ETC/IKSD.CONF
  111.  
  112. ;log debug /root/iksd.debug.\v(pid).log
  113.  
  114. set auth tls rsa-cert-file /root/.tlslogin/c.crt
  115. set auth tls rsa-key-file /root/.tlslogin/c.unp
  116. set auth tls verify-dir /usr/local/ca
  117. set auth tls verify-file /usr/local/ca/cacert.pem
  118.  
  119. set telopt /server start-tls required
  120. set telopt /server auth refused
  121. set telopt /server encrypt refused refused
  122. set telopt /server new-environment required
  123. set auth tls cipher-list ALL:+RSA
  124. set auth tls verify peer-cert
  125.  
  126. KERMIT CLIENT STARTUP
  127.  
  128. #!/usr/local/bin/kermit +
  129. set auth tls rsa-cert-file w.crt                       ;personal cert pem
  130. set auth tls rsa-key-file work_priv.pem                ;personal key pem
  131. set auth tls verify-dir /usr/local/ca                      ;CA directory
  132. set auth tls verify-file /usr/local/ca/cacert.pem      ;CA cert pem
  133. w/hash?
  134. set auth tls verify peer-cert
  135. set login userid <userid>
  136. set telopt start-tls required
  137.  
  138.  
  139. > > C-Kermit>set host /connect <host> 1649 /tls-telnet
  140. > >  DNS Lookup...  Trying 149.223.210.203... (OK)
  141. > > SSL_DEBUG_FLAG on
  142. > > SSL/TLS init done!
  143. > > Loading RSA certificate into SSL
  144. > > Enter certificate passphrase:
  145. > > [TLS - handshake starting]
  146. > > SSL_handshake:UNKWN  before/connect initialization
  147. > > SSL_connect:UNKWN  before/connect initialization
  148. > > SSL_connect:3WCH_A SSLv3 write client hello A
  149. > > SSL_write_alert
  150. > > SSL_connect:error in 3RSH_A SSLv3 read server hello A
  151. > > [TLS - SSL_connect error: error:1408F10B:SSL
  152. > > routines:SSL3_GET_RECORD:wrong version number
  153. > > [TLS - FAILED]
  154. > > TELNET SENT DO LOGOUT
  155. > > Can't open connection to <host>:1649
  156. > >
  157.